package com.itheima.pojo;

import java.io.Serializable;

public class Pill implements Serializable {
    private Integer id;
    private String code;
    private String name;
    private String price;
    private String unit;
    private String effect;
    private String description;

    public Pill(Integer id, String code, String name, String price, String unit, String effect, String description) {
        this.id = id;
        this.code = code;
        this.name = name;
        this.price = price;
        this.unit = unit;
        this.effect = effect;
        this.description = description;
    }

    public Pill() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getEffect() {
        return effect;
    }

    public void setEffect(String effect) {
        this.effect = effect;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public String toString() {
        return "Pill{" +
                "id=" + id +
                ", code='" + code + '\'' +
                ", name='" + name + '\'' +
                ", price='" + price + '\'' +
                ", unit='" + unit + '\'' +
                ", effect='" + effect + '\'' +
                ", description='" + description + '\'' +
                '}';
    }
}
